﻿<%@ Page Title="New Recipe - Traditional Maltese Cuisine" Language="C#" MasterPageFile="~/MainMasterPage.Master" AutoEventWireup="true" CodeBehind="NewRecipe.aspx.cs" Inherits="TraditionalMalteseCuisine.NewRecipe" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
    <asp:ValidationSummary ID="vsyValidationSummary" runat="server" HeaderText="Please note that:" CssClass="validation_summary" />
    <div id="control_wrapper" style="width: 60%;">
        <table style="width: 100%;">
            <tr><td colspan="3"><div class="title">NEW RECIPE</div></td></tr>
            <tr><td colspan="3">&nbsp;</td></tr>
            <tr>
                <td class="middle_right"><asp:Label ID="lblRecipeName" runat="server" Text="Recipe Name:" CssClass="label" /></td>
                <td class="middle_left" style="width: 60%;"><asp:TextBox ID="txtRecipeName" runat="server" CssClass="textbox" /></td>
                <td class="middle_left"><asp:RequiredFieldValidator ID="rfvRecipeName" runat="server" ErrorMessage="Recipe Name field cannot be empty" ControlToValidate="txtRecipeName" SetFocusOnError="True" >*</asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td class="top_right"><asp:Label ID="lblDescription" runat="server" Text="Description:" CssClass="label" /></td>
                <td class="middle_left" style="width: 60%;"><asp:TextBox ID="txtDescription" runat="server" CssClass="memobox" TextMode="MultiLine" Height="150px" /></td>
                <td class="top_left"><asp:RequiredFieldValidator ID="rfvDescription" runat="server" ErrorMessage="Description field cannot be empty" ControlToValidate="txtDescription" SetFocusOnError="True" >*</asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td class="top_right"><asp:Label ID="lblIngredients" runat="server" Text="Ingredients:" CssClass="label" /></td>
                <td class="middle_left" style="width: 60%;"><asp:TextBox ID="txtIngredients" runat="server" CssClass="memobox" TextMode="MultiLine" Height="150px" /></td>
                <td class="top_left"><asp:RequiredFieldValidator ID="rfvIngredients" runat="server" ErrorMessage="Ingredients field cannot be empty" ControlToValidate="txtIngredients" SetFocusOnError="True" >*</asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td class="top_right"><asp:Label ID="lblDirections" runat="server" Text="Directions:" CssClass="label" /></td>
                <td class="middle_left" style="width: 60%;"><asp:TextBox ID="txtDirections" runat="server" CssClass="memobox" TextMode="MultiLine" Height="150px" /></td>
                <td class="top_left"><asp:RequiredFieldValidator ID="rfvDirections" runat="server" ErrorMessage="Directions field cannot be empty" ControlToValidate="txtDirections" SetFocusOnError="True" >*</asp:RequiredFieldValidator></td>
            </tr>
            <tr><td colspan="3">&nbsp;</td></tr>
            <tr>
                <td class="middle_right"><asp:Label ID="lblLevel" runat="server" Text="Level:" CssClass="label" /></td>
                <td class="middle_left" style="width: 60%;"><asp:DropDownList ID="cmbLevel" runat="server" CssClass="combobox" /></td>
                <td class="middle_left"><asp:RequiredFieldValidator ID="rfvLevel" runat="server" ErrorMessage="Level field cannot be empty" ControlToValidate="cmbLevel" SetFocusOnError="True" >*</asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td class="middle_right"><asp:Label ID="lblRecipeImage" runat="server" Text="Preview:" CssClass="label" /></td>
                <td class="middle_left" style="width: 60%;"><asp:FileUpload ID="uplImageLocation" runat="server" CssClass="textbox" /></td>
                <td class="middle_left"><asp:CustomValidator ID="csvImageLocation" runat="server" ErrorMessage="Please choose a valid image file" ControlToValidate="uplImageLocation">&nbsp;*</asp:CustomValidator></td>
            </tr>
            <tr><td colspan="3">&nbsp;</td></tr>
            <tr><td colspan="3" class="middle_center"><asp:Button ID="btnSubmit" runat="server" Text="Submit" CssClass="button" OnClick="btnSubmit_Click" /></td></tr>
            <tr><td colspan="3">&nbsp;</td></tr>
        </table>
    </div>
</asp:Content>
